<?php
/*
Template Name: sitemap
*/
?>
<?php get_header(); ?>
<div id="main">
<div id="content">
<div class="content_center">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="pagemeta"><h3><?php the_title(''); ?></h3></div>
<div class="content">
<?php the_content('More &raquo;'); ?>
<div class="clear"></div>
<?php the_tags('标签: ', ', ', ' '); ?>
<span class="edit"><?php edit_post_link('<span class="edita">&nbsp&nbsp&nbsp&nbsp&nbsp</span>', ' ', ' '); ?></span>
</div>
<div class="sitemap">
<h4>栏目分类</h4>
<ul><?php wp_list_cats ('sort_column=name&optioncount=1&hierarchical=0&sort_order=desc'); ?></ul>
<h4>页面分类</h4>
<ul><?php wp_list_pages('title_li=&depth=1'); ?></ul>
<h4>年份归档</h4>
<ul><?php wp_get_archives('type=monthly&show_post_count=true'); ?></ul>
</div>
</div>
<br>
<br>
<br>
<br>
<?php endwhile; else: ?>
<div class="post">哦！您要找的日志可能已经更换地址，重新搜索一下吧，或者点击<a title="Home" class="active" href="<?php echo get_option('home'); ?>/">这里</a>回首页看看吧</div>
<?php endif; ?>

</div>
<?php get_footer(); ?>